import axios from "axios";
/* 删除数据 */
export const deleteUserById = (userId) => {
    return axios.delete(`/user/${userId}`)
}

export const deleteRoleById = (roleId) => {
    return axios.delete(`/role/${roleId}`)
}

export const deleteRightById = (rightId) => {
    return axios.delete(`right/${rightId}`)
}

export const deleteRecordById = (recordId) => {
    return axios.delete(`/record/${recordId}`)
}

export const deleteChildrenById = (id) => {
    return axios.delete(`/children/${id}`)
}

export const deleteRoleRightByRoleId = (roleId) => {
    return axios.delete(`/role_right/${roleId}`)
}

export const deleteLoginUserByUserId = (userId) => {
    return axios.delete(`/login?userId=${JSON.stringify(userId)}`)
}

export const deleteDepartmentById = (departmentId) => {
    return axios.delete(`/department/${departmentId}`)
}

export const deleteAuditById = (auditId) => {
    return axios.delete(`/audit/${auditId}`)
}

export const deleteCirculationById = (circulationId) => {
    return axios.delete(`/circulation/${circulationId}`)
}

export const deleteChannelById = (channelId) => {
    return axios.delete(`/channel/${channelId}`)
}

export const deleteTypeById = (typeId) => {
    return axios.delete(`/type/${typeId}`)
}

export const deleteRiskById = (riskId) => {
    return axios.delete(`/risk/${riskId}`)
}

export const deleteLocationById = (locationId) => {
    return axios.delete(`/location/${locationId}`)
}

export const deleteCategoryById = (categoryId) => {
    return axios.delete(`/category/${categoryId}`)
}

export const deleteServiceById = (serviceId) => {
    return axios.delete(`/service/${serviceId}`)
}

